import Mock from "mockjs"
import goodsNav from '@/mock/goodsNav.json'
import {goodsList1,goodsList2} from './mockData'
// 获取主页的商品导航栏
Mock.mock(/\/mock\/goodsNav/,"get",{
  code:200,
  data:goodsNav
})

Mock.mock(/\/mock\/goodsList\?id=00[135]/,'get', {
  code:200,
  data:goodsList1
})

Mock.mock(/\/mock\/goodsList\?id=00[24]/,'get', {
  code:200,
  data:goodsList2
})

